
while True:
  try:
     fruits = ['apples','grape','peach']
     num2 = int(input("add your favourite fruits' numbers"))
     print (fruits[num2])
  except IndexError:
    print("该序号不存在")     